package com.redstar.HappyRefresh.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.redstar.HappyRefresh.pojo.*;

import java.util.HashMap;
import java.util.HashSet;
import java.util.List;

public interface UserService extends IService<User> {
    UserVO getInfo(Long userId);

    Page<User> getFollows(BasePage basePage, Long userId);

    Page<User> getFans(BasePage basePage, Long userId);

    String saveOrUpdateFavorites(Favorites favorites);

    String subscribe(String types);

    List<Type> listSubscribeType(Long userId);

    List<Type> listNoSubscribeType(Long userId);

    String followUser(Long followsUserId);

    void updateUserModel(Model model);

    String updateUser(UpdateUserVO user);

    String register(RegisterVO registerVO);

    String findPassword(FindPWVO findPWVO);

    HashMap<String, Object> login(User user);
}
